Translation filter on select field#101
Translation filter on select field#101raimonesteve wants to merge 5 commits intoopenlabs:developfrom
Conversation
|
I test more about selected fields to get label and not option. In some cases, key, value are not exactly and don't find all translated labels in translation_filter. For example: I think a better option is clone select options in template and get it: |
|
I improve values from selection fields use Model.fields_get. Get values from selection fields is more easy than add conditions or dict in jinja template (need afeter to translate). I don't know if "translation_filter" is the best name of this method/filter. Feedback? Details https://groups.google.com/d/msg/tryton-dev/JVCYVFlVtxs/GsZI-QGB810J |
|
@raimonesteve could you send the translation of select fields as a new patch please ? It is an important contribution which we could include before 3.2 release |
|
Hie Sharoon, I try to resend pull request but I get "Travis error field"... You could import/export commit raimonesteve@8537342 or copy code in main nereid project. You are free ;) |
|
Sure, we will try :) |
When render some fields in template, this fields is a option, not value (for example selected fields). Add new filter to translate values from ir.translations.